package com.fire.activiti.activitidb.process.impl;

import com.fire.activiti.activitidb.process.ProcessEngine;
import com.fire.activiti.activitidb.process.ProcessEngineProvider;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @author Mr.Fire
 * @date 2021/12/21
 * @desc
 */
@Component
public class ProcessEngineProviderImpl implements ProcessEngineProvider {

    @Autowired
    ProcessEngineBuilder processEngineBuilder;

    @Override
    public ProcessEngine getProcessEngine() {
        return processEngineBuilder.build();
    }
}
